Total Complexity | 56 |
Dependencies | 8 |
Dependents | 4 |
Total lines | 592 |
Lines of code | 239 |
Logical lines of code | 133 |
Comment lines | 267 |
Methods | 34 |
Properties | 6 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
add() | 40 | 7 | 64 | |
calculate_totals() | 51 | 5 | 26 | |
get_totals() | 68 | 4 | 7 | |
remove() | 59 | 3 | 15 | |
generate_cart_id() | 63 | 3 | 10 | |
empty_cart() | 61 | 2 | 13 | |
get_cart_item() | 78 | 2 | 3 | |
get_cart() | 71 | 2 | 6 | |
update_coupon_uses() | 64 | 2 | 10 | |
get_cart_hash() | 71 | 2 | 5 | |
set_subtotal() | 80 | 1 | 3 | |
get_customer() | 81 | 1 | 3 | |
is_empty() | 79 | 1 | 3 | |
reset_totals() | 75 | 1 | 4 | |
set_total() | 80 | 1 | 3 | |
set_discount_total() | 80 | 1 | 3 | |
set_subtotal_tax() | 80 | 1 | 3 | |
__construct() | 63 | 1 | 10 | |
set_totals() | 79 | 1 | 3 | |
cart_type() | 78 | 1 | 3 | |
set_applied_coupons() | 80 | 1 | 3 | |
set_removed_cart_contents() | 80 | 1 | 3 | |
set_cart_contents() | 80 | 1 | 3 | |
get_total() | 78 | 1 | 3 | |
get_net_total() | 78 | 1 | 3 | |
get_tax_total() | 78 | 1 | 3 | |
get_sub_total() | 78 | 1 | 3 | |
get_discount_total() | 78 | 1 | 3 | |
get_gross_total() | 78 | 1 | 3 | |
get_applied_coupons() | 81 | 1 | 3 | |
get_removed_cart_contents() | 81 | 1 | 3 | |
get_cart_contents() | 78 | 1 | 3 | |
use_default_cart() | 80 | 1 | 3 | |
set_coupon_discount_tax_totals() | 80 | 1 | 3 |